<?xml version="1.0" encoding="windows-1252"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>Person List</title>
         <link type="text/css" rel="stylesheet" media="all" href="/css/bootstrap.css" />
	<link type="text/css" rel="stylesheet" media="all" href="/css/bootstrap-responsive.css" />
	<link type="text/css" rel="stylesheet" media="all" href="/css/jquery-ui-1.8.17.custom.css" />
    </head>
    <body>
        <h3>Person List</h3>
        #if ($person.isEmpty()) No person
        #else

        <table class="table table-striped table-condensed">
            <tr>
                <td>None</td>
                <td><input class="btn btn-danger" type="button" onClick="javascript:window.opener.document.getElementById('parent').value='';window.opener.document.getElementById('parentName').value='None';window.close();" value="Set"/></td>
            </tr>
            #foreach ($i in $list)
            <tr>
                <td>$i.firstName</td>
                <td><input type="button" class="btn btn-primary" onClick="javascript:window.opener.document.getElementById('parent').value='$i.id';window.opener.document.getElementById('parentName').value='$i.firstName';window.close();" value="Set"/></td>
            </tr>
            #end
        </table>
        #end
    </body>
</html>
